<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.util.http.URLParameter"%>
<%@page import="com.blockchain.front.servlets.financial.AbstractFinancialServlet"%>
<%@page import="com.blockchain.front.service.AbstractFrontService"%>
<%@page import="com.blockchain.front.servlets.AbstractFrontServlet"%>
<%@page import="com.blockchain.front.service.financial.entity.JlEntity"%>
<%@page import="com.blockchain.common.enums.JyztStatus"%>
<%@page import="com.blockchain.front.service.security.entity.QbdzEntity"%>
<%@page import="com.blockchain.front.service.security.SecurityManage"%>
<%@page import="com.blockchain.front.service.financial.FinancialManage"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "dealRecord_dealRecord");
String _TITLE_ = str+"- "+configureProvider.getProperty(SystemVariable.SITE_NAME);
CURRENT_SUB_CATEGORY="CJJL";
PC_TITLE_NAME="CJJL";
int scid=IntegerParser.parse(request.getParameter("scid"));
JyztStatus type=EnumParser.parse(JyztStatus.class, request.getParameter("type"));
final int currentPage = IntegerParser.parse(request.getParameter("paging.current"));
FinancialManage manage=serviceSession.getService(FinancialManage.class);
SecurityManage securityManage = serviceSession.getService(SecurityManage.class);
QbdzEntity[] qbdzs=securityManage.getXlb();
PagingResult<JlEntity> searchCjjl=manage.searchCjjl(scid, type,new Paging() {
	public int getCurrentPage() {
		return currentPage;
	}

	public int getSize() {
		return 10;
	}
});
JlEntity[] search=searchCjjl.getItems();
%>
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<div class="autobox">
 <div class="now">
  <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a> &gt; <a href="<%=controller.getViewURI(request,com.blockchain.front.servlets.financial.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_financeCenter")%> </a> &gt; <%=languageDefine.getValue(request, "dealRecord_dealRecord")%>
 </div>
 	<div class="assets_center clear po_re zin70">
  <%@include file="/WEB-INF/include/financial/left.jsp"%>	
  	<div class="assets_content w900 right bg_w">
   		<div class="safe_center clear" style="padding-left: 0px;">
   		<h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;"><%=languageDefine.getValue(request, "dealRecord_dealRecord")%></h1>
   		</div>
   <div class="sj" style="top: 40px; left: 60px;"></div>
   <div class="cnyin_record" style="width: 918px;">
    <div class="f_body">
     <div class="f_body_main">
      <div class="f_tab_body">
       <div>
     	<form action="<%=controller.getViewURI(request, Cjjl.class)%>" method="post" id="form">
        <table class="f_table" id="investLog_content">
         <thead>
          <tr>
           <th>
                <img id="tp" src="<%if(!StringHelper.isEmpty(securityManage.getTbsc(scid))){%><%=fileStore.getURL(securityManage.getTbsc(scid))%><%}%>" alt="" style="margin-bottom: -5px; width: 22px;"/>
                      <select name="scid" id="qianbao_type">
                       <%if(qbdzs!=null){for(QbdzEntity q:qbdzs){ %>
                        <option value="<%=q.scid%>" <%if(q.scid==scid){%> selected="selected"<%}%>><%StringHelper.filterHTML(out,q.zwm_s);%> (<%StringHelper.filterHTML(out,q.ywm_s);%>/<%StringHelper.filterHTML(out,q.ywm_m);%> )</option>
                           <%}}%>
                        </select>
            </th>
           <th><%=languageDefine.getValue(request, "dealRecord_dealTime")%></th>
           <th>
            <select name="type" id="type-selectTest">
                 <option value="0">-<%=languageDefine.getValue(request, "dealRecord_all")%>- </option>
                 <%for(JyztStatus j:JyztStatus.values()){%>
                 <option  <%if(j.name().equals(String.valueOf(type))){%> selected="selected"<%}%> value="<%=j.name()%>"><%=backgroundDataFlag==1?j.getName():backgroundDataFlag==2?j.getNameEn():j.getNameTw()%></option>
                 <%}%>
            </select>
            </th>
           <th><%=languageDefine.getValue(request, "dealRecord_dealPrice")%></th>
           <th><%=languageDefine.getValue(request, "dealRecord_dealQuantity")%></th>
           <th><%=languageDefine.getValue(request, "dealRecord_dealTotal")%></th>
           <th><%=languageDefine.getValue(request, "dealRecord_dealFee")%></th>
          </tr>
         </thead>
         <tbody>
           <%if(search!=null){for(JlEntity s:search){%> 
            <tr>
                <td><%StringHelper.filterHTML(out,s.zwm_s);%> (<%StringHelper.filterHTML(out,s.ywm_s);%>/<%StringHelper.filterHTML(out,s.ywm_m);%> )</td>
                <td><%=TimestampParser.format(s.sj)%></td>
               	<td>
               	<%StringHelper.filterHTML(out,s.zt);%>
               	</td> 
                <td><%=Formater.formatAmount_(s.cjjg,s.ws)%></td>
                <td><%=Formater.formatAmount_(s.cjsl,s.ws)%></td>
                <td><%=Formater.formatAmount_(s.ze,s.ws)%></td>
                <td>
               <%--  <%if(s.mr_id!=s.mc_id){%>
               	 <%=Formater.formatAmount(s.mr_sxf)%><%StringHelper.filterHTML(out,s.ywm_s);%>
               	<%}if(s.jyztStatus!=null&&s.jyztStatus==JyztStatus.MC&&s.mr_id!=s.mc_id){%>
                 <%=Formater.formatAmount(s.mc_sxf)%>CNY
                <%}if(s.mr_id==s.mc_id){%>
                <%=Formater.formatAmount(s.mr_sxf)%><%StringHelper.filterHTML(out,s.ywm_s);%>/<%=Formater.formatAmount(s.mc_sxf)%>CNY
                 <%}%> --%>
               <%StringHelper.filterHTML(out,s.sxf);%>
                </td>
            </tr>
            <%}}%>
        </tbody>
        </table>
       <%AbstractFinancialServlet.rendPagingResult(out, searchCjjl);%>
       </form>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
 </div>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
 <script type="text/javascript">
	$("#qianbao_type").change(function () {
    $("#form").submit();
});
	$("#type-selectTest").change(function () {
		$("#form").submit();
	});
</script>
</body>
</html>	
	
